package cc.douquan.com.doutu.view.fragment;

import com.orhanobut.logger.Logger;

import cc.douquan.com.doutu.MyApplication;
import cc.douquan.com.doutu.delegate.MeDelegate;
import cc.douquan.com.doutu.mvp_frame.presenter.FragmentPresenter;
import cc.douquan.com.doutu.utils.DataClearManager;

import static android.R.attr.x;
import static cc.douquan.com.doutu.utils.DataClearManager.getTotalCacheSize;

/**
 * Created by qef on 2016/8/27.
 */
public class MeFragment extends FragmentPresenter<MeDelegate> {

    public static MeFragment newInstance() {
        MeFragment MeFragment = new MeFragment();
        return MeFragment;
    }

    @Override
    protected Class getDelegateClass() {
        return MeDelegate.class;
    }

    @Override
    protected void initData() {
        super.initData();
        try {
            viewDelegate.setCatchSize(DataClearManager.getTotalCacheSize(MyApplication.getContext()));
            Logger.i("xxxx", x);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
